﻿<%@ Page Language="C#" MasterPageFile="~/manage/manage.Master" AutoEventWireup="true" CodeBehind="assets.aspx.cs" Inherits="SimpleSocxs.manage.assets" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table class="common_table">
    <tr>
        <th>File</th>
        <th>Path</th>
        <th>&nbsp;</th>
    </tr>
    <tr>
        <td colspan="2">
            <asp:FileUpload ID="fuAsset" runat="server" />
        </td>
        <td>
            <asp:Button ID="Button1" runat="server" Text="Upload" OnClick="OnUploadAsset" />
        </td>
        <asp:Repeater ID="rpt" runat="server">
            <ItemTemplate>
            <tr>
                <td><%#(string)Container.DataItem%></td>
                <td><%#SimpleSocxs.Helper.GetAssetUrl(SocxsUser.ID, (string)Container.DataItem)%></td>
                <td>
                    <a target="_blank" href='<%#SimpleSocxs.Helper.GetAssetUrl(SocxsUser.ID, (string)Container.DataItem)%>'>View</a>
                    <asp:LinkButton ID="btnDeleteAsset" runat="server" Text="Delete" OnClick="OnDeleteAsset" CommandArgument='<%#(string)Container.DataItem%>' />

                </td>
            </tr>
            </ItemTemplate>
        </asp:Repeater>
    </tr>
</table>
</asp:Content>